<!DOCTYPE html>
<html>
<head lang="en">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="renderer" content="webkit">
    <title></title>
    <!-- bootstrap & fontawesome -->
    <link rel="stylesheet" href="__PUBLIC__/assets/css/bootstrap.css" />
    <link rel="stylesheet" href="__PUBLIC__/assets/css/font-awesome.css" />
    <!-- text fonts -->
    <link rel="stylesheet" href="__PUBLIC__/assets/css/ace-fonts.css" />

    <!-- ace styles -->
    <link rel="stylesheet" href="__PUBLIC__/assets/css/ace.css" class="ace-main-stylesheet" id="main-ace-style" />
    <link rel="stylesheet" href="__PUBLIC__/css/admin/admin_manage.css" />
</head>
<body>
<div class="top-div">
    <a class="cur_pa" href="__URL__/index">管理角色</a>
    <a href="__URL__/add">新增角色</a>
</div>
<div class="table-content">
    <table id="sample-table-2" class="table table-striped table-bordered table-hover text-center">
        <thead>
        <tr>
            <th>序号</th>
            <th>角色名称</th>
            <th>角色描述</th>

            <th>
                状态
            </th>
            <th>操作</th>
        </tr>
        </thead>

        <tbody>
        <volist name="roles" id="role" key="k">
            <tr>
                <td>
                    {$k}
                </td>
                <td>{$role['name']}</td>
                <td>{$role['comment']}</td>
                <td>
                    <if condition="$role['status'] eq 1 ">
                        <font color="red">√</font>
                        <else />
                        <font color="blue">×</font>
                    </if>

                </td>
                <td>
                    <div class="">
                        <a class="blue" href="__URL__/edit?id={$role['id']}">
                            修改
                        </a>
                        <a class="grey" href="javascript:open_dialog('__URL__/get_role_priv?role_id={$role['id']}')">
                            权限设置
                        </a>
<!--                        <a class="grey" href="javascript:open_dialog('__URL__/set_role_cat_priv?role_id={$role['id']}')">-->
<!--                            栏目权限-->
<!--                        </a>-->
<!--                        <a class="grey" href="#">-->
<!--                            成员管理-->
<!--                        </a>-->
                        <a class="green" href="__URL__/del?id={$role['id']}">
                            删除
                        </a>
                    </div>
                </td>
            </tr>
        </volist>
        </tbody>
    </table>
</div>

</body>
<script src='__PUBLIC__/assets/js/jquery.js'></script>
<script src="__PUBLIC__/assets/js/bootstrap.js"></script>
<script src="__PUBLIC__/assets/js/ace/ace.js"></script>
<script src="__PUBLIC__/js/common.js"></script>
</html>